package com.example.logistics.controller.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class CreateOrderRequest {
    @NotBlank
    private String orderNumber;
    @NotNull
    private Long warehouseId;
    @NotNull
    private List<Item> items;

    @Data
    public static class Item {
        @NotBlank
        private String sku;
        @NotBlank
        private String name;
        @Min(1)
        private Integer quantity;
    }
}


